Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commit to fix descendants and subtree methods to work properly with scopes that use joins #35

Closed
wants to merge 2 commits into from

Conversation

raelik
Copy link
Contributor

@raelik raelik commented Dec 28, 2010

Because the descendants and subtree methods use raw sql as part of their conditions, using them with another scope method breaks if that scope uses joins. This commit fixes that by adding the table name to the sql.

… use joins by including the table name in the condition sql.
@kerinin
Copy link

kerinin commented Dec 29, 2010

I'm having this same problem, +1 for merging into main

@swrobel
Copy link

swrobel commented Jan 8, 2011

+1

@johnrees
Copy link

Same problem here +1

…operly with scopes that use joins by including the table name in the condition sql.
@raelik
Copy link
Contributor Author

raelik commented Feb 14, 2011

Didn't realize I made this pull request off my master. I'm gonna close this and re-request off my branch for join fixes. Feel free to re-bump it :)

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants